<template>
	<view>
		<view class="h370">
			<image :src="$config.receive_coupon_img||''" class="w-max h-max" mode="aspectFill"></image>
		</view>
		<view class="p30 ">
			<view class="bg-fff p10 pl20 pr20 radius10">
				<u-input v-model="code" placeholder="请输入领取指令" />
			</view>
			<view class="h50"></view>
			<u-button type="warning"  ripple @click="submit" shape="circle">确认并领取</u-button>
			<view class="mt60">指令领券说明</view>
			<view class="mt20 fs24 color-999"></view>
			<u-parse :html="$config.receive_coupon_tips" :domain="$baseUrl"></u-parse>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				code: ''
			};
		},
		onLoad() {

		},
		methods: {
			submit() {
				this.$request('/member/coupon/receiveCode', {
					code: this.code
				}).then(res => {
					this.$msg(res.msg)
					this.code = ''
				})
			},
		}
	}
</script>

<style lang="scss">

</style>
